home *** CD-ROM | disk | FTP | other *** search
/ JCSM Shareware Collection 1996 September / JCSM Shareware Collection (JCS Distribution) (September 1996).ISO / word_prc / fwtext.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1994-01-06  |  8KB  |  186 lines

  1. @ECHO OFF
  2. REM
  3. REM  INSTALL.BAT, Version 26.06.1993, Installation von FW-TEXT auf HD
  4. REM
  5. CLS
  6. ECHO               ╔════════════════════════════════════════════════╗
  7. ECHO               ║    Harddisc-installation of FW-TEXT V4.5x !    ║
  8. ECHO               ╚════════════════════════════════════════════════╝
  9. ECHO ┌─────────────────────────────────────────────────────────────────────────────┐
  10. ECHO │                            ╔═══════════════════╗                            │
  11. ECHO │                            ║ !!! ATTENTION !!! ║                            │
  12. ECHO │                            ╚═══════════════════╝                            │
  13. ECHO │                                                                             │
  14. ECHO │     Before you start the installation, please prepare a backup copy of      │
  15. ECHO │     this distribution disc. Use only this working copy of the FW-TEXT       │
  16. ECHO │     disc and store the original disc at a safe place.                       │
  17. ECHO │                                                                             │
  18. ECHO │     The easiest way is to enter at the DOS-level the following command:     │
  19. ECHO │                                                                             │
  20. ECHO │                             DISKCOPY A: A:                                  │
  21. ECHO │                  or         DISKCOPY B: B:                                  │
  22. ECHO │                                                                             │
  23. ECHO │     Store the original disc at a safe place and use only this working copy. │
  24. ECHO └─────────────────────────────────────────────────────────────────────────────┘
  25. REM
  26. REM  Wenn ohne Parameter aufgerufen (z.B. Erstaufruf mit START.BAT) 
  27. REM  Info ausgeben 
  28. REM
  29. IF '%1' == '' GOTO meldung 
  30. REM
  31. REM  ... sonst normal weiter
  32. REM
  33. ECHO         ╔═════════════════════════════════════════════════════════╗
  34. ECHO         ║  Press any key to continue ---- EXIT with [CTRL]+[C] !  ║
  35. ECHO         ╚═════════════════════════════════════════════════════════╝
  36. PAUSE >nul 
  37.  
  38. CLS
  39. ECHO               ╔════════════════════════════════════════════════╗
  40. ECHO               ║    Harddisc-installation of FW-TEXT V4.5x !    ║
  41. ECHO               ╚════════════════════════════════════════════════╝
  42. ECHO.
  43. ECHO. 
  44. ECHO.  
  45. IF '%2' == '' GOTO akt1 
  46. GOTO and1
  47.  
  48. :and1
  49. ECHO          FW-TEXT will be installed on drive:  [%1]
  50. ECHO                             in subdirectory:  [%2]
  51. ECHO.
  52. ECHO.
  53. MD %1%2 >nul
  54. GOTO disk1
  55.  
  56. :akt1
  57. ECHO          FW-TEXT will be installed on drive:  [%1]
  58. ECHO.
  59. ECHO          in the actual directory.
  60. ECHO.
  61. GOTO disk1
  62.  
  63. :disk1
  64. ECHO.
  65. ECHO         The files will now be copied in your target drive/directory !
  66. ECHO.
  67. ECHO.
  68. IF '%2' == '' GOTO dir1_1
  69. GOTO dir1_2
  70.  
  71. :dir1_1
  72. IF EXIST text_450.exe COPY text_450.exe %1 >nul
  73. IF EXIST text_451.exe COPY text_451.exe %1 >nul
  74. COPY *.doc %1 >nul
  75. COPY *.frm %1 >nul
  76. COPY *.me! %1 >nul
  77. COPY *.com %1 >nul
  78. %1
  79. IF EXIST text_450.exe text_450
  80. IF EXIST text_451.exe text_451
  81. GOTO weiter1
  82.  
  83. :dir1_2
  84. IF EXIST text_450.exe COPY text_450.exe %1%2 >nul
  85. IF EXIST text_451.exe COPY text_451.exe %1%2 >nul
  86. COPY *.doc %1%2 >nul
  87. COPY *.frm %1%2 >nul
  88. COPY *.com %1%2 >nul
  89. COPY *.me! %1%2 >nul
  90. %1
  91. CD %2
  92. IF EXIST text_450.exe text_450
  93. IF EXIST text_451.exe text_451
  94. GOTO weiter1 
  95.  
  96. :weiter1
  97. IF '%2' == '' GOTO weiter2
  98. GOTO weiter3
  99.  
  100. :weiter2
  101. IF EXIST %1fw-text.exe GOTO ok
  102. GOTO fehler
  103.  
  104. :weiter3
  105. IF EXIST %1%2\fw-text.exe GOTO ok
  106. GOTO fehler
  107.  
  108. :meldung 
  109. ECHO                 ╔══════════════════════════════════════╗
  110. ECHO                 ║     Press any key to continue  !!    ║
  111. ECHO                 ╚══════════════════════════════════════╝
  112. PAUSE >nul 
  113. CLS 
  114. ECHO ┌─────────────────────────────────────────────────────────────────────────────┐
  115. ECHO │      Harddisc-installationroutine for FW-TEXT V4.5x (DEMO/FULL) !           │
  116. ECHO │      ════════════════════════════════════════════════════════════           │
  117. ECHO │                                                                             │
  118. ECHO │  When you start this batchfile, you have to add an existing target          │
  119. ECHO │  drive. Furthermore you can specify a target directory which will be        │
  120. ECHO │  opened automatically.                                                      │
  121. ECHO │                                                                             │
  122. ECHO │  Example for calling this routine:                                          │
  123. ECHO │                                                                             │
  124. ECHO │                       INSTALL ■ C: ■ \FWTEXT                                │
  125. ECHO │                                                                             │
  126. ECHO │  The sign "■" is a symbole for a [SPACE].                                   │
  127. ECHO │  Please enter only full pathnames and don't forget the colon behind         │
  128. ECHO │  the drive-letter. All parameters have to be devide by a [SPACE].           │
  129. ECHO │  Examples:                                                                  │
  130. ECHO │                                                                             │
  131. ECHO │         RIGHT   │ c: ■ \test\text │ c: ■ \text │ C:                         │
  132. ECHO │         ────────┼─────────────────┼────────────┼───────                     │
  133. ECHO │         WRONG   │ c:\test\text    │   c:text   │ B:                         │
  134. ECHO │                                                                             │
  135. ECHO │  The drive (A: or B:) with the FW-TEXT-distributiondisc MUST be the         │
  136. ECHO │  active drive. You need approx. 1.8 MB space on the target drive !!         │
  137. ECHO └───────────────────» Press any key to continue «─────────────────────────────┘
  138. PAUSE >nul
  139. CLS
  140. GOTO end
  141.  
  142. :ok
  143. IF EXIST text_450.exe del text_450.exe >nul
  144. IF EXIST text_451.exe del text_451.exe >nul
  145. CLS
  146. ECHO ┌─────────────────────────────────────────────────────────────────────────────┐
  147. ECHO │                                                                             │
  148. ECHO │                   ╔═════════════════════════════════════════╗               │
  149. ECHO │                   ║  Installation successfully finished !!  ║               │
  150. ECHO │                   ╚═════════════════════════════════════════╝               │
  151. ECHO │                                                                             │
  152. ECHO │     You will find further information now in the files FW-TEXT.DOC and      │
  153. ECHO │     COMMERC.DOC. You can read this files with the following command:        │
  154. ECHO │                                                                             │
  155. ECHO │                              READ FW-TEXT.DOC                               │
  156. ECHO │                                                                             │
  157. ECHO │     or print them with the command:                                         │
  158. ECHO │                                                                             │
  159. ECHO │                              PRINT FW-TEXT.DOC                              │
  160. ECHO │                                                                             │
  161. ECHO │                                                                             │
  162. ECHO │     And now ..... lots of fun and success with FW-TEXT V4.5x (DEMO/FULL) !  │
  163. ECHO │                                                ═════════════════════════    │
  164. ECHO │                                                                             │
  165. ECHO └──────────────────────» Press any key to continue «──────────────────────────┘
  166. PAUSE >nul
  167. GOTO end
  168.  
  169. :fehler 
  170. CLS
  171. ECHO.
  172. ECHO             ╔══════════════════════════════════════════════════╗
  173. ECHO             ║  The installationprocess was not successfull !!  ║
  174. ECHO             ╚══════════════════════════════════════════════════╝
  175. ECHO.
  176. ECHO           Please check, if you have made a mistake when calling this
  177. ECHO           batchfile. Are the parameters correct ? Drive A: or B:, which
  178. ECHO           contain the distribution disc must be active !!
  179. ECHO.
  180. ECHO.
  181. GOTO end
  182.  
  183. :end
  184.  
  185.  
  186.